<script type="text/javascript" >
<{include file='user/right/js/index.js'}>
</script>
<style type="text/css">
    .button {
        background: url(/images/left-menu-li.gif) repeat-x left top #F1F6F9;
        border: 1px solid #318DAC;
        font-weight: bold;
        padding: 2px 5px;
        font-weight: lighter;
        color: #318DAC;
        vertical-align: middle;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        margin: auto 5px
    }

    div#add {
        text-align: center;
    }

    div.info {
        text-align: left;
    }

    div.item {
        margin-bottom: 12px;
    }

    input.text {
        height: 22px;
        margin-left: 8px;
    }

    span.text {
        margin-left: 8px;
    }

    span.userInfoLeft {
        float: left;
        text-align: right;
        width: 100px;
    }

    span.userInfoRight {
        float: left;
    }

    div.errormsg {
        color: red;
        float: right;
        padding-left: 3px;
        text-align: left;
    }

    .validateTips {
        background-color: #FFFECD;
        border: 1px solid #CCCCCC;
        color: #FF0000;
        display: none;
        line-height: 26px;
        min-height: 26px;
        margin-bottom: 5px;
        text-align: center;
        height: auto;
        overflow: hidden;
    }

    .validateTips span {
        float: left;
        clear: both;
        line-height: 24px;
        width: 100%;
    }
</style>
<div id="right_confirm" style="display: none;">
    <p style="text-align:center;font-size: 14px;color: red;font-weight: bold;">
        <{$lang.delete_sure}>？
    </p>
</div>

<div id="iTitle">
    <div id="iTitleSub">

        <form id="sForm" name="sForm" onkeypress="if(event.keyCode==13){return false;}">
            <div>
                <label>
                    <{$lang.auth}><{$lang.name}>:<input id="right_name" class="myInput" type="text" onkeyup="if(event.keyCode==13){search();}" name="right_name">
                </label>&nbsp;
                <label>
                    <{$lang.module}><{$lang.name}>:<select name="right_module">
                    <option value=""><{$lang.pls}></option>
                    <{foreach key=key item=item from=$module}>
                    <option value="<{$item.ura_module}>"><{$item.ura_module}></option>
                    <{/foreach}>
                </select>
                </label>&nbsp;
                <input class="button" type="button" value="<{$lang.search}>" onclick="search();">&nbsp;&nbsp;
                <input class="button" type="button" value="<{$lang.add}>" id="addButton" onclick="editRight('','add')">&nbsp;&nbsp;
            </div>
        </form>

    </div>
    <div id="message" style="color:red;"></div>
    <div class="myClear"></div>
</div><!-- id="iTitle" 结束 -->

<h3><{$lang.user}><{$lang.auth}><{$lang.list}></h3>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="myTab">
    <thead>
    <tr>
        <th>ID</th>
        <th><{$lang.title}></th>
        <th><{$lang.en_title}></th>
        <th><{$lang.description}></th>
        <th>URL</th>
        <th><{$lang.icon}></th>
        <th><{$lang.update}></th>
        <th><{$lang.function}></th>
        <th><{$lang.delete}></th>
    </tr>
    </thead>
    <tbody id="list"></tbody>
</table>

<div class="pagination"></div>

<div id="add" title="<{$lang.auth}><{$lang.edit}>" style="display:none;">
    <div class="info">
        <div class="validateTips" id="tips"></div>
        <form id="createForm" name="createForm">
            <div class="item">
                <span class="userInfoLeft"><{$lang.title}>:</span>
			<span class="userInfoRight">
				<input type="hidden" name="ur_id" id="ur_id"/>
				<input type="text" name="ur_name" id="ur_name" class="text ui-widget-content"/>
                <div class="errormsg"></div>
			</span>

                <div style="clear:both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft">English:</span>
			<span class="userInfoRight">
				<input type="text" name="ur_en_name" id="ur_en_name" class="text ui-widget-content"/>
                <div class="errormsg"></div>
			</span>

                <div style="clear:both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.module}><{$lang.name}>:</span>
			<span class="userInfoRight">
				<select name="ur_module" id="ur_module" style="margin-left:8px" class="ui-widget-content">
                    <option value=""><{$lang.pls}></option>
                    <{foreach key=key item=item from=$module}>
                    <option value="<{$item.ura_module}>"><{$item.ura_module}></option>
                    <{/foreach}>
                </select>
                <div class="errormsg"></div>
			</span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft">所属<{$lang.nemu}>:</span>
			<span class="userInfoRight">
				<select name="um_id" id="um_id" style="margin-left:8px" class="ui-widget-content">
                    <option value=""><{$lang.pls}></option>
                    <{foreach key=key item=item from=$menuArr}>
                    <option value="<{$item.um_id}>"><{$item.um_title}></option>
                    <{/foreach}>
                </select>
                <div class="errormsg"></div>
			</span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft">URL:</span>
			<span class="userInfoRight">
				<input type="text" name="ur_url" id="ur_url" class="text ui-widget-content"/>
                <div class="errormsg"></div>
			</span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.icon}>:</span>
			<span class="text userInfoRight">
				<select name="ur_icon" id="ur_icon" class="ui-widget-content">
                    <option value="">无</option>
                    <option value="form.gif"><{$lang.list}></option>
                    <option value="user.gif"><{$lang.user}></option>
                    <option value="computer.gif"><{$lang.system}></option>
                </select> 
			</span>

                <div style="clear: both;"></div>
            </div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.description}>:</span>
			<span class="userInfoRight">
				<input type="text" name="ur_description" id="ur_description"
                       class="text ui-widget-content"/>
			</span>

                <div style="clear: both;"></div>
            </div>
        </form>

    </div>
</div>